package com.sskj.lib.bean;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import javax.annotation.Nullable;

@Entity(primaryKeys = {"code"})
public class SelfCoinBean {
    private Integer id;
    @NonNull
    private String code;

    public SelfCoinBean(String code) {
        this.code = code;
    }

    public Integer getId() {
        return id;
    }

    public void setId(@Nullable Integer id) {
        this.id = id;
    }
    @NonNull
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
